package com.wtf.dsp.admin.core.executor;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
public abstract class AbstractExecutor implements ApplicationContextAware {

    protected ApplicationContext applicationContext;

    //初始化渠道执行器
    protected abstract void initExecutors();

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext;
        initExecutors();
    }

}
